home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / METAKIT.ZIP / INCLUDE / K4CONF.H next >
Encoding:
C/C++ Source or Header  |  1996-12-09  |  2.2 KB  |  77 lines

  1. //@doc      CONFWM HDR CORE
  2. //@module   CONFWM.H - Public Windows/MFC configuration header |
  3. //
  4. //  This is the simplified header (Windows/MFC only) for use with MetaKit.
  5. //
  6. //  There is no point in exporting the bulky and complex conditional header
  7. //  structure used within the library itself, but the definitions below will
  8. //  have to be changed substantially to support other platforms, etc.
  9. //  
  10. //@normal   Copyright <cp> 1996 Meta Four Software. All rights reserved.
  11.  
  12. #ifndef __K4CONF_H__
  13. #define __K4CONF_H__
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // Microsoft Foundation Classes
  17.  
  18. #include <afxcoll.h>
  19.  
  20. typedef class CFile            c4_File;
  21. typedef class CString       c4_String;
  22. typedef class CPtrArray     c4_PtrArray;
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25.  
  26.     // by default, if MFC is linked as a DLL, then so is MetaKit
  27. #if defined (_AFXDLL) && !defined (q4_KITDLL)
  28.     #define q4_KITDLL _AFXDLL
  29. #endif
  30.  
  31. #if _MSC_VER == 800
  32.         // MSVC 1.52 thinks typedef has no constructor, use a macro instead
  33.     #define c4_String CString
  34.         // MSVC 1.52 only works if expanding inline in release builds (why?)
  35.     #if NDEBUG && !defined (q4_INLINE)
  36.         #define q4_INLINE 1 
  37.     #endif
  38. #endif
  39.  
  40.     // MSVC 4.x can specify the library it needs to link here
  41. #if _MSC_VER >= 1000
  42.     #if q4_KITDLL
  43.         #ifdef _DEBUG
  44.             #pragma comment(lib, "mk4nvmxd.lib")
  45.         #else
  46.             #pragma comment(lib, "mk4nvmx.lib")
  47.         #endif
  48.     #else
  49.         #ifdef _DEBUG
  50.             #pragma comment(lib, "mk4nvmsd.lib")
  51.         #else
  52.             #pragma comment(lib, "mk4nvms.lib")
  53.         #endif
  54.     #endif
  55. #endif
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58. // Other definitions needed by the public MetaKit library header files
  59.  
  60. #if !q4_BOOL                    // define a bool datatype
  61.     #define false 0
  62.     #define true 1
  63.     #define bool int
  64. #endif
  65.  
  66. #if q4_INLINE                    // enable inline expansion
  67.     #define d4_inline inline
  68. #else
  69.     #define d4_inline
  70. #endif
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.  
  74. #endif
  75.  
  76. // $Id: k4confwm.h,v 1.6 1996/12/06 22:33:18 jcw Exp $
  77.